import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class SysUserService {

  constructor(private http: HttpClient) {
  }

  getSysUserById(id: string) {
    return this.http.get(`sys/user/${id}`);
  }

  updateUser(params) {
    return this.http.put(`sys/user`,params);
  }

  getSysUserPage(params) {
    return this.http.get(`sys/user/page`, params);
  }
}
